package com.xjm.ips.mapper;

import com.xjm.ips.entity.Department;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);


    List<Department> getAllDepartmentsById(Integer pid);

    void addDepartment(Department department);

    void deleteDepartment(Department department);

    List<Department> getAllDepartNoChildren();

    List<Department> getEveryDeparmentNumbers();

    List<Department> getDepartmentRps();
}